package com.ncmmall.domain.business.merchant.freight;

import javax.persistence.Access;
import javax.persistence.AccessType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;

/**
 * 省
 *
 * @author likaikai
 * @date 2019-07-08 16:02
 */
@Entity
@Table(name = "mall_merchant_freight_province")
@Access(AccessType.FIELD)
public class MerchantFreightProvince {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private long id;

    /**
     * 省份名称
     */
    private String name;

    /**
     * 省份编码
     */
    private String provinceCode;

    /**
     * 省份下的市区
     */
    @Transient
    private List<MerchantFreightCity> merchantFreightCities;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getProvinceCode() {
        return provinceCode;
    }

    public void setProvinceCode(String provinceCode) {
        this.provinceCode = provinceCode;
    }

    public List<MerchantFreightCity> getMerchantFreightCities() {
        return merchantFreightCities;
    }

    public void setMerchantFreightCities(List<MerchantFreightCity> merchantFreightCities) {
        this.merchantFreightCities = merchantFreightCities;
    }
}
